package com.arian.zambayonny;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;

public class Splash extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		   
		Thread timer = new Thread() {
			public void run() {
				try {
					Thread.sleep(3000);
				} catch (InterruptedException e) {
					e.printStackTrace();
				} finally {
					Intent intent = new Intent(Splash.this, MainActivity.class);
					startActivity(intent);
				}	
			}
		};
		
		timer.start();	
	}
	
	protected void onPause() {
		super.onPause();		
		this.finish();	
	}
}